package com.lin.springbootexceptionHandling.mapper.Impl;

import com.lin.springbootexceptionHandling.mapper.UserMapper;
import com.lin.springbootexceptionHandling.po.User;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Repository
public class UserMapperImpl implements UserMapper {
    @Override
    public List<User> getUserList() {
        List<User> userList = new ArrayList<>();
        userList.add(new User("lin", 18, true, "beijing", "lin"));
        userList.add(new User("Tom", 20, false, "shanghai", "Tom"));
        userList.add(new User("Jerry", 19, true, "guangzhou", "Jerry"));
        userList.add(new User("Mary", 21, false, "shenzhen", "Mary"));
        userList.add(new User("Jack", 22, true, "chengdu", "Jack"));
        userList.add(new User("Rose", 23, false, "wuhan", "Rose"));
        return userList;
    }
}
